package com.example.demo.mp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.mp.entity.ShortUrl;

/**
 * (Userinfo)表服务接口
 *
 * @author makejava
 * @since 2024-12-14 15:58:05
 */
public interface ShortUrlService extends IService<ShortUrl> {

    ShortUrl getShortUrl(String shortName);

    /**
     * 创建短链接
     *
     * @param url 原始链接
     * @return
     */
    ShortUrl createShortUrl(String url);

    Boolean addClickCount(String shortName);
}

